package com.ybkj.chat.bean;

/**
 +

 * - @Author:  Yi Shan Xiang
 * - @Description:  网络请求返回基类
 * - @Time:  2018/8/31
 * - @Emaill:  380948730@qq.com
 */
public class BaseResponse<T> {
    private int errCode;//1成功
    private String errMsg;//成功的返回信息
    private T data;//具体数据

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseResponse{" +
                "code=" + errCode +
                ", message='" + errMsg + '\'' +
                ", data=" + data +
                '}';
    }
}
